﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Approval1.aspx.cs" Inherits="MarketContract.Approval1" %>

<%@ Register Src="../../Processes/ProcessControl/UserInfo_TY.ascx" TagName="UserInfo"
    TagPrefix="ui" %>
<%@ Register Src="../../Processes/ProcessControl/ApprovalHistory_TY.ascx" TagName="ApprovalHistory"
    TagPrefix="ah" %>
<%@ Register Src="../../Processes/ProcessControl/Attachments_TY.ascx" TagName="Attachments"
    TagPrefix="attach" %>
<%@ Register Src="../../Processes/ProcessControl/ButtonList_TY.ascx" TagName="ButtonList"
    TagPrefix="btn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>销售类合同评审</title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            if ($("#fld_TCONTRACTNO").text().length >= 20) {
                $("#txtendNo").attr("style", "display:none");
            }
        });

//        function checklegth() {
//            if ($("#txtendNo").val().length < 4) {
//                alert("合同后4位必须为4位");
//                $("#txtendNo").focus();
//                $("#txtendNo").select();
//            }
        //        }

        function beforeSubmit() {
            //选择同意判断合同编号
            if ($("#ApprovalHistory1_rbApprove").attr('checked') == "checked") {
                var No = $("#txtendNo").val();
                if ($.trim(No) == "") {
                    alert("合同编号不能为空！！！");
                    return false;
                }
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="container">
        <div class="row">
            <ui:userinfo id="UserInfo1" processtitle="销售类合同评审" processprefix="MC" readonly="true"
                tablename="PROC_MARKETCONTRACT" runat="server"></ui:userinfo>
        </div>
        <div class="row">
            <table class="table table-condensed table-bordered">
                <tr>
                    <td class="banner" colspan="4">
                        详细信息
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        合同名称：
                    </td>
                    <td class="td-content">
                        <asp:Label ID="fld_TCONTRACTNAME" runat="server"></asp:Label>
                    </td>
                    <td class="td-label">
                        对方名称：
                    </td>
                    <td class="td-content">
                        <asp:Label ID="fld_TSIDENAME" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        合同总金额：
                    </td>
                    <td class="td-content">
                        <asp:Label ID="fld_TCONTRACTSPRICE" runat="server"></asp:Label>
                    </td>
                    <td class="td-label">
                        合同编号：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:Label runat="server" ID="fld_TCONTRACTNO"></asp:Label>
                        <asp:TextBox runat="server" Width="80px" ID="txtendNo" MaxLength="6"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        合同类型：
                    </td>
                    <td class="td-content">
                        <asp:Label ID="fld_TCONTRACTTYPE" runat="server">
                            
                        </asp:Label>
                    </td>
                    <td class="td-label">
                        业务类型：
                    </td>
                    <td class="td-content">
                        <asp:Label ID="fld_TBUSSNIESSTYPE" runat="server">
                            
                        </asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="td-label" style="vertical-align: middle;">
                        签约对方情况:
                    </td>
                    <td colspan="3">
                        <table class="  table-bordered" width="100%">
                            <tr>
                                <td width="15%" style="background-color: #f5f5f5;">
                                    法定代表人:
                                </td>
                                <td>
                                    <asp:Label runat="server" Width="80%" ID="fld_TLEGALPERSON"></asp:Label>
                                </td>
                                <td width="15%" style="background-color: #f5f5f5;">
                                    注册资金:
                                </td>
                                <td>
                                    <asp:Label runat="server" Width="80%" ID="fld_TREGISTEREDCAPITAL"></asp:Label>
                                </td>
                                <%--  <td width="10%" style="background-color: #f5f5f5;">
                                    代理人:
                                </td>
                                <td>
                                    <asp:Label runat="server" ID="fld_TAGENT" Width="80%" ></asp:Label>
                                </td>
                                <td width="10%" style="background-color: #f5f5f5;">
                                    代表权限:
                                </td>
                                <td>
                                    <asp:Label runat="server" ID="fld_TBEHALFAUTHOR" Width="80%" ></asp:Label>
                                </td>--%>
                            </tr>
                            <%--<tr>
                               
                                <td style="background-color: #f5f5f5;">
                                    资质:
                                </td>
                                <td>
                                    <asp:Label runat="server" Width="80%" ID="fld_TINTELLIGENCE" ></asp:Label>
                                </td>
                                <td style="background-color: #f5f5f5;">
                                    信誉:
                                </td>
                                <td>
                                    <asp:Label runat="server" Width="80%" ID="fld_TCREDIT"></asp:Label>
                                </td>
                            </tr>--%>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="td-label" style="vertical-align: middle;">
                        合同主要内容:
                    </td>
                    <td class="td-content" colspan="3">
                        <%-- <asp:TextBox runat="server" TextMode="MultiLine" Width="97%" ID="fld_TCONTRACTCONTENT"
                            Height="50px" ReadOnly="true"></asp:TextBox>--%>
                        <asp:Label runat="server" ID="fld_TCONTRACTCONTENT" Width="97%"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        选择相关人员:
                    </td>
                    <td class="td-content" colspan="3">
                        <asp:Label runat="server" Width="80%" ID="fld_TXTUSERNAME"></asp:Label>
                        <%-- <asp:HiddenField ID="hidUserAccount" runat="server" />--%>
                        <%--<asp:Button ID="Button1" runat="server" CssClass="btn" Text="选择" OnClientClick="selectUser(2,'txtUserName','hidUserAccount')"/>--%>
                    </td>
                </tr>
            </table>
        </div>
        <div class="row">
            <attach:attachments id="Attachments1" runat="server" readonly="true"></attach:attachments>
        </div>
        <div class="row">
            <ah:approvalhistory id="ApprovalHistory1" showaction="true" runat="server"></ah:approvalhistory>
        </div>
        <div class="row">
        </div>
    </div>
    <btn:buttonlist id="ButtonList1" runat="server"></btn:buttonlist>
    <div style="display: none;">
    </div>
    </form>
</body>
</html>
